package com.example.featuresdk.model

import androidx.annotation.DrawableRes
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.example.featuresdk.R

@Entity
data class User(
    /**
     * unique user id
     */
    @PrimaryKey (autoGenerate = true) val id: Long? = null,
    /**
     * nickname
     */
    val nickname: String,

    @DrawableRes val icon: Int = R.drawable.ic_head_sender
){
    companion object{
        val ME = User(0,"Me")
    }
}
//https://developer.android.google.cn/training/data-storage/room/defining-data#ignore
